package vn.hocweb.entity;

import java.sql.Date;

public class MaNguon extends Entity{
	private long maNguon;
	
	private UngDung ungDung;
	private NguoiDung nguoiCapNhat;
	private MaNguon maNguon_LienQuan;
	
	private String ten;
	private String moTa;
	private String hinhAnh;
	private String dinhDang;
	private Date ngayCapNhat;
	private int luotTaiVe;
	
	public MaNguon(long maNguon, long maUngDung, String nguoiCapNhat,
			long maNguon_LienQuan, String ten, String moTa, String hinhAnh,
			String dinhDang, Date ngayCapNhat, int luotTaiVe, int thuTu,
			boolean noiBat, boolean hienThi) {
		super(thuTu, noiBat, hienThi);
		this.maNguon = maNguon;
		this.ungDung = new UngDung(maUngDung);
		this.nguoiCapNhat = new NguoiDung(nguoiCapNhat);
		this.maNguon_LienQuan = new MaNguon(maNguon_LienQuan);
		this.ten = ten;
		this.moTa = moTa;
		this.hinhAnh = hinhAnh;
		this.dinhDang = dinhDang;
		this.ngayCapNhat = ngayCapNhat;
		this.luotTaiVe = luotTaiVe;
		this.thuTu = thuTu;
		this.noiBat = noiBat;
		this.hienThi = hienThi;
	}
	
	public MaNguon(long maNguon, long maUngDung, String nguoiCapNhat,
			MaNguon maNguon_LienQuan, String ten, String moTa, String hinhAnh,
			String dinhDang, Date ngayCapNhat, int luotTaiVe, int thuTu,
			boolean noiBat, boolean hienThi) {
		super(thuTu, noiBat, hienThi);
		this.maNguon = maNguon;
		this.ungDung = new UngDung(maUngDung);
		this.nguoiCapNhat = new NguoiDung(nguoiCapNhat);
		this.maNguon_LienQuan = maNguon_LienQuan;
		this.ten = ten;
		this.moTa = moTa;
		this.hinhAnh = hinhAnh;
		this.dinhDang = dinhDang;
		this.ngayCapNhat = ngayCapNhat;
		this.luotTaiVe = luotTaiVe;
		this.thuTu = thuTu;
		this.noiBat = noiBat;
		this.hienThi = hienThi;
	}

	public MaNguon(long maNguon) {
		super();
		this.maNguon = maNguon;
	}

	public long getMaNguon() {
		return maNguon;
	}

	public void setMaNguon(long maNguon) {
		this.maNguon = maNguon;
	}

	public UngDung getUngDung() {
		return ungDung;
	}

	public void setUngDung(UngDung ungDung) {
		this.ungDung = ungDung;
	}

	public NguoiDung getNguoiCapNhat() {
		return nguoiCapNhat;
	}

	public void setNguoiCapNhat(NguoiDung nguoiCapNhat) {
		this.nguoiCapNhat = nguoiCapNhat;
	}

	public String getTen() {
		return ten;
	}

	public void setTen(String ten) {
		this.ten = ten;
	}

	public String getMoTa() {
		return moTa;
	}

	public void setMoTa(String moTa) {
		this.moTa = moTa;
	}

	public String getHinhAnh() {
		return hinhAnh;
	}

	public void setHinhAnh(String hinhAnh) {
		this.hinhAnh = hinhAnh;
	}

	public String getDinhDang() {
		return dinhDang;
	}

	public void setDinhDang(String dinhDang) {
		this.dinhDang = dinhDang;
	}

	public Date getNgayCapNhat() {
		return ngayCapNhat;
	}

	public void setNgayCapNhat(Date ngayCapNhat) {
		this.ngayCapNhat = ngayCapNhat;
	}

	public int getLuotTaiVe() {
		return luotTaiVe;
	}

	public void setLuotTaiVe(int luotTaiVe) {
		this.luotTaiVe = luotTaiVe;
	}

	public int getThuTu() {
		return thuTu;
	}

	public void setThuTu(int thuTu) {
		this.thuTu = thuTu;
	}

	public boolean isNoiBat() {
		return noiBat;
	}

	public void setNoiBat(boolean noiBat) {
		this.noiBat = noiBat;
	}

	public boolean isHienThi() {
		return hienThi;
	}

	public void setHienThi(boolean hienThi) {
		this.hienThi = hienThi;
	}

	public MaNguon getMaNguon_LienQuan() {
		return maNguon_LienQuan;
	}

	public void setMaNguon_LienQuan(MaNguon maNguon_LienQuan) {
		this.maNguon_LienQuan = maNguon_LienQuan;
	}

}
